package name.wilbur.course.db.bigone.model;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class DBTypeMap {
	/* Just wonder why */
	/* CAN NOT GET ResultSet.getObject(int, Map) work with my TypeMap */
	
  private static final Map<String, Class<?>> TypeMap;
  static {
        Map<String, Class<?>> map = new HashMap<String, Class<?>>(3);
		map.put("smallint", Short.class);
		map.put("tinyint", Short.class);
		map.put("int", Short.class);
        TypeMap = Collections.unmodifiableMap(map);
    }
  
  public static Map<String, Class<?>> getTypeMap() {
	  return TypeMap;
  }
  
}
